import myRequest from './index';

export const getCompanyListApi = (data: any) => {
  return myRequest<any>('/admin_api/company/list', {
    method: 'POST',
    data,
  });
};

export const editCompanyApi = (data: any) => {
  return myRequest<any>('/admin_api/company/edit', {
    method: 'POST',
    data,
  });
};

export const addCompanyApi = (data: any) => {
  return myRequest<any>('/admin_api/company/add', {
    method: 'POST',
    data,
  });
};

export const getCompanyEeviewListApi = (data: any) => {
  return myRequest<any>('/admin_api/factory_register/list', {
    method: 'POST',
    data,
  });
};

export const reviewCompanyApi = (data: any) => {
  return myRequest<any>('/admin_api/factory_register/audit', {
    method: 'POST',
    data,
  });
};
